﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Admin_Client
{
    public partial class DeleteUser : Form
    {
        public DeleteUser()
        {
            InitializeComponent();
        }

        public void InitialazeEditUser(string[] arraySelectedUser)
        {
            this.deleUseridtxtBox.Text = arraySelectedUser[0];
        }
        
        private void deleteButton_Click(object sender, EventArgs e)
        {
            User user = new User();
            user.DeleteUser(deleUseridtxtBox.Text);
            this.Hide();
        }
    }
}
